package com.woniu.dao;

import com.woniu.entity.Category;
import com.woniu.entity.vo.MenuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MenuDao {
    @Select("select m.* from menu m join role_menu rm on rm.menu_id = m.id join role r on rm.role_id = r.role_id join user_role ur on ur.role_id = r.role_id join user u on u.user_id = ur.user_id where u.username = #{userName}")
    List<MenuVo> selectMenuByUserName(String userName);


}
